package io.renren.modules.manage.constant;

/**
 * @Author: linbd
 * @Description:
 * @Date: 2024/4/12 1:08
 */
public enum PayStyleEnum {
    OFFLINE(0, "货到付款"),
    WE_CHAT(1, "微信支付"),
    ALIPAY(2,"支付宝支付"),
    BANK_CARD(3,"银行卡支付");

    PayStyleEnum(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public static PayStyleEnum getEnumByCode(int code) {
        for (PayStyleEnum value : PayStyleEnum.values()) {
            if (value.code == code) {
                return value;
            }
        }
        return null;
    }

    private int code;
    private String msg;

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
